<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib prefix="error" uri="/WEB-INF/tags/ErrorTag.tld"%>

<t:basicTemplate pageTitle="SWIMv2 - ${userName} - Disputed Feedbacks">

	<jsp:attribute name="extrahead">
		<link rel='stylesheet' href='css/feedback.css' type='text/css' />
	</jsp:attribute>

	<jsp:body>
    	
    	
    	<div class="error-style">
			<error:errors error="${param.error}"></error:errors>
			<c:if test="${param.removed == true}">
				<p>Feedback successfully removed!</p>
			</c:if>
		</div>
		
		<img id="feedbackImage" src="img/feedback.jpg"
			alt="you disputed feebacks?" />

	
			 <c:if test="${fn:length(lstFeedback) gt 0}"> 
				<c:forEach items="${lstFeedback}" var="map">
					
					
					<form name="form_${map['title_feedback']}"
					action="./proceed-delete-feedback" method="POST">
						
					   <div> 											    	
							Feeback given To: ${map['got_by']}  <br />
							Left By:  ${map['left_by']}   <BR />
							Comment:  ${map['title_feedback']}  <BR />
						</div>

						<input type="hidden" name="id" value="${map['id']}" />
						<input type="hidden" name="gotBy" value="${map['got_by']}" />
						<input type="submit" name="submit" value="Delete Feedback" />
		
						
					</form>
					
					<br /> <br />
				</c:forEach>
		  </c:if>
		  
		   <c:if test="${fn:length(lstFeedback) le 0}">
		   		There are no feedbacks to delete 
		   </c:if> 



		
    	
    </jsp:body>
</t:basicTemplate>